package com.info33.platform.doc.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文档管理 - 文件明细
 *
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DocFileDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件id【doc_file】")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fileId;

    @ApiModelProperty(value = "文件编号")
    private String fileNumber;

    @ApiModelProperty(value = "原名称")
    private String oldName;

    @ApiModelProperty(value = "新名称")
    private String newName;

    @ApiModelProperty(value = "截取的图片路径")
    private String imgUrl;

    @ApiModelProperty(value = "图片缩略图")
    private String compressImg;

    @ApiModelProperty(value = "文件描述")
    private String fileDesc;

    @ApiModelProperty(value = "文件大小 MB")
    private Double fileSize;

    @ApiModelProperty(value = "文件后缀")
    private String fileSuffix;

    @ApiModelProperty(value = "版本号")
    private String versionNumber;

}